/**
 * 订单统计图表
 */
export const orderStatisticEChart = () => {
  const option = {
    tooltip: {
      trigger: 'axis'
    },
    legend: {
      data: [
        { name: "订单数量", itemStyle: { color: "#46BDF4" } },
        { name: "成交订单", itemStyle: { color: "#3ECCCE" } }
      ]
    },
    toolbox: {
      feature: {
        saveAsImage: {}
      }
    },
    grid: {
      left: '3%',
      right: '2%',
      bottom: '5%',
      
    },
    xAxis: [
      {
        type: 'category',
        boundaryGap: false,
        data: ['00:00', '01:15', '02:30', '03:45', '05:00', '06:15', '07:30', '08:45', '10:00', '11:15', '12:30', '13:45', '15:00', '16:15', '17:30', '18:45', '20:00', '21:15', '22:30', '23:45']
      }
    ],
    yAxis: [{type: 'value'}],
    series: [
      {
        name: '订单数量',
        type: 'line',
        showSymbol: false,
        smooth: true,
        lineStyle: { color: "#46BDF4" },
        areaStyle: { color: "#CBECFC" },
        data: [220, 182, 191, 234, 290, 330, 310]
      },
      {
        name: '成交订单',
        type: 'line',
        showSymbol: false,
        smooth: true,
        lineStyle: { color: "#3ECCCE" },
        areaStyle: { color: "#C9F0F1" },
        data: [120, 132, 101, 134, 90, 230, 210]
      }
    ]
  };

  return option;
}